package bishi.diezhi;

import java.util.*;

public class diezhi1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            String s = in.nextLine();
            StringBuffer demo = new StringBuffer();
            for(int i = 0;i < s.length();i++) {
                if(s.charAt(i) >='a' && s.charAt(i) <= 'z' ||
                s.charAt(i) >= 'A' && s.charAt(i) <= 'Z') {
                    demo.append(s.charAt(i));
                }
            }
            String ret = demo.toString();
            ret = ret.toLowerCase();
            if(ret.length() == 0) {
                System.out.println("true");
            }else {
                System.out.println(check(ret));
            }


        }
    }

    static boolean check(String ret) {
        int left =  0;
        int right = ret.length() - 1;
        while(left < right) {
            if(ret.charAt(left) != ret.charAt(right)) {
                return false;
            }
            left++;
            right--;
        }
        return true;
    }
}
